from random import randint
class Die:
    '''Dice'''
    def __init__(self,sides=6):
        self.sides=sides

    def roll_die(self):
        print(randint(1,self.sides))

dice_0=Die()
for i in range(10):#range默认是0到9
    dice_0.roll_die()
dice_1=Die(10)
dice_2=Die(20)
for i in range(10):
    dice_1.roll_die()
for i in range(10):
    dice_2.roll_die()
